<template tag="以下文档内容为hycli自动生成">
  <div style="height: 100%">
    <div style="margin:0.8rem;"><h5 style="display:inline">日常事务</h5><span style="margin-left: 0.5rem; color:#999"> 研发日常任务处理情况跟踪</span>
        <ddmenu :menuList="lob_idList" @valueChanged="onlob_idChange" v-model="form_aaaqb.lob_id" menuType="my_business_line" ></ddmenu>
    </div>
    <hr style="margin-top:0;color:#999"/>
<div class="query">
    
    <div class="tabs">
        <el-tabs v-model="form_aaaqb.archive_status"  @tab-change="onQuery">
            <el-tab-pane v-for="item in archive_statusTabList" :name="item.value" :key="item.value" :label="item.name" 
             ></el-tab-pane>
          </el-tabs>
    </div>
    <el-form :model="form_aaaqb" inline >
        <!-- 日期控件个数： 3 -->
        <el-form-item>
            <!--多日期范围控件 -->
            <el-select v-model="form_aaaqb.single_date_range_name" filterable placeholder="日期类型" style="width:120px;" class="prepend">
                <el-option
                v-for="item in multiQueryDateRange"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
        </el-select>
            <el-date-picker :shortcuts="shortcuts" style="width: 200px" v-model="form_aaaqb.single_date_range_value" type="daterange" start-placeholder="开始日期"
                end-placeholder="结束日期" format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
        </el-form-item>
        <!--任务类型 下拉控件多选 -->
        <el-form-item>
            <el-select v-model="form_aaaqb.daily_tp" filterable clearable multiple collapse-tags  style="width: 140px"
            collapse-tags-tooltip placeholder="任务类型">
                <el-option v-for="item in daily_tpList" :key="item.value" :label="item.name" :value="item.value" />
            </el-select>
        </el-form-item>
        <!--处理人 下拉控件多选 -->
        <el-form-item>
            <el-select v-model="form_aaaqb.master" filterable clearable multiple collapse-tags  style="width: 140px"
            collapse-tags-tooltip placeholder="处理人">
                <el-option v-for="item in masterList" :key="item.value" :label="item.name" :value="item.value" />
            </el-select>
        </el-form-item>
        <!--状态 下拉控件多选 -->
        <el-form-item>
            <el-select v-model="form_aaaqb.status" filterable clearable multiple collapse-tags  style="width: 140px"
            collapse-tags-tooltip placeholder="状态">
                <el-option v-for="item in statusList" :key="item.value" :label="item.name" :value="item.value" />
            </el-select>
        </el-form-item>
        <!--分类 下拉控件多选 -->
        <el-form-item>
            <el-select v-model="form_aaaqb.category" filterable clearable multiple collapse-tags  style="width: 140px"
            collapse-tags-tooltip placeholder="分类">
                <el-option v-for="item in categoryList" :key="item.value" :label="item.name" :value="item.value" />
            </el-select>
        </el-form-item>
        <!-- 控件个数：[{"index":7,"raw":"name","name":"name","cname":"Name","type":{"raw":"varchar2(255)","name":"varchar2","len":255,"dlen":0},"defValue":"","allowNull":false,"constraints":["l","le","c","u","q","v","DN","rows(1)","lw(160)","#like","wf"],"desc":{"raw":"名称","name":"名称"}} {"index":10,"raw":"tsk_reason","name":"tsk_reason","cname":"TskReason","type":{"raw":"varchar2(255)","name":"varchar2","len":255,"dlen":0},"defValue":"","allowNull":false,"constraints":["le","c","q","u","v","rows(1)","#like"],"desc":{"raw":"原因","name":"原因"}} {"index":11,"raw":"content","name":"content","cname":"Content","type":{"raw":"varchar2(2000)","name":"varchar2","len":2000,"dlen":0},"defValue":"","allowNull":false,"constraints":["le","c","q","u","v","rows(4)","tp(rtext,c-u)","#like"],"desc":{"raw":"内容","name":"内容"}}] -->
         <el-form-item>
            <el-input clearable style="width: 180px" v-model="form_aaaqb.single_text_value" maxlength="32"
                placeholder="关键字" >
                <template #prepend>
                    <el-select v-model="form_aaaqb.single_text_name" placeholder="查询类型" style="width:84px;">
                        <el-option
                        v-for="item in multiQueryText"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                      </el-select>
                  </template>
            </el-input>
        </el-form-item>

        <span class="ddl">
        </span>
        <el-form-item>
            <el-space wrap>
                <el-button type="primary" icon="Search" @click="onQuery(true)">查询</el-button>
            </el-space>
        </el-form-item>
        
        <div class="blist">
            <el-button-group>
                <el-button :type="$js.page.tagColor(0)" v-if='
                form_aaaqb.archive_status==1'
                
                 icon="Plus"  @click="show_cmpnt_aaaqf">添加日常事务</el-button>
                <el-button :type="$js.page.tagColor(1)" v-if='
                form_aaaqb.archive_status==1'
                 :disabled="bcheck.length==0" 
                 icon="check"  @click="show_cmpnt_aaaqg">完结任务</el-button>
                <el-button :type="$js.page.tagColor(2)" v-if='
                form_aaaqb.archive_status==1'
                 :disabled="bcheck.length==0" 
                 icon="switch"  @click="show_cmpnt_aaaqh">归类</el-button>
            </el-button-group>
        </div>

        <!-- xtabs -->
        

    </el-form>
</div>
<div>
   <aaaqf ref="cmpnt_aaaqf" @onsaved="onQuery"></aaaqf>
   <aaaqe ref="cmpnt_aaaqe" @onsaved="onQuery"></aaaqe>
   <aaaqc ref="cmpnt_aaaqc" @onsaved="onQuery"></aaaqc>
   <aaaqg ref="cmpnt_aaaqg" @onsaved="onQuery"></aaaqg>
   <aaaqh ref="cmpnt_aaaqh" @onsaved="onQuery"></aaaqh>
   <aaaqd ref="cmpnt_aaaqd" @onsaved="onQuery"></aaaqd>
</div>
<div class="list">
    <el-table :data="dataList_aaaqb"
    @selection-change="handleSelectionChange" 
    v-loading="conf.loading" stripe  style="width: 100%;height:calc(100vh - 160px)"
         empty-text="无数据">le
<el-table-column width="24px" type="expand">
    <template #default="view">
        <el-row :gutter="24">
            <el-col :span="5" class="text-right" style="min-height:26px">日常事务:</el-col>
            <el-col :span="7" v-text="view.row.le_daily_id" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">名称:</el-col>
            <el-col :span="7" v-html="view.row.le_name||'-'" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">优先级:</el-col>
            <el-col :span="7" v-text="view.row.priority_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">任务类型:</el-col>
            <el-col :span="7" v-text="view.row.daily_tp_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">原因:</el-col>
            <el-col :span="7" v-html="view.row.le_tsk_reason||'-'" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">内容:</el-col>
            <el-col :span="7" v-html="view.row.le_content||'-'" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">附件:</el-col>
            <el-col :span="7" style="min-height:26px"
            >
                <el-link target="_blank" type="primary" :href="view.row.le_att" v-if="view.row.le_att" :title="view.row.le_att">查看</el-link>
            </el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">处理人:</el-col>
            <el-col :span="7" v-text="view.row.master_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">发起人:</el-col>
            <el-col :span="7" v-text="view.row.le_sponsor" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">时长(小时):</el-col>
            <el-col :span="7" v-text="view.row.le_time_span" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">状态:</el-col>
            <el-col :span="7" v-text="view.row.status_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">分类:</el-col>
            <el-col :span="7" v-text="view.row.category_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">创建人:</el-col>
            <el-col :span="7" v-text="view.row.creator_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">创建时间:</el-col>
            <el-col :span="7" v-text="view.row.le_create_time" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">处理时间:</el-col>
            <el-col :span="7" v-text="view.row.le_deal_time" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">完成时间:</el-col>
            <el-col :span="7" v-text="view.row.le_finish_time" style="min-height:26px" ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">归档状态:</el-col>
            <el-col :span="7" v-text="view.row.archive_status_label" style="min-height:26px"
              ></el-col>
            <el-col :span="5" class="text-right" style="min-height:26px">业务线:</el-col>
            <el-col :span="7" v-text="view.row.lob_id_label" style="min-height:26px"
              ></el-col>
        </el-row>
    </template>
</el-table-column>
          <el-table-column type="selection" width="32" /> 
        	<!--daily_id text -->
        <el-table-column  show-overflow-tooltip    align="center" label="日常事务" >
            <template #default="scope">
                  <span>{{ scope.row.daily_id||'-' }}</span>
              </template>
        </el-table-column>
        	<!--name text -->
        <el-table-column  show-overflow-tooltip   min-width="160"   align="center" label="名称" >
            <template #default="scope">
                  <span>{{ scope.row.name||'-' }}</span>
              </template>
        </el-table-column>
        	<!--priority tag -->
        <el-table-column    min-width="60"  prop="priority" align="center" label="优先级">
            <template #default="scope">
                <el-tag :type="$js.page.tagColor(scope.row.priority,'priority')" round v-text="scope.row.priority_label"  ></el-tag>
            </template>
        </el-table-column>
        	<!--daily_tp select -->
        <el-table-column     prop="daily_tp" align="center" label="任务类型">
            <template #default="scope">
                <span 
                    v-text="scope.row.daily_tp_label"></span>
            </template>
        </el-table-column>
        	<!--master select -->
        <el-table-column  :filters="masterList" :filter-method="$js.page.columnfilter" column-key="master"    min-width="120"   prop="master" align="center" label="处理人">
            <template #default="scope">
                <span 
                    v-text="scope.row.master_label"></span>
            </template>
        </el-table-column>
        	<!--sponsor text -->
        <el-table-column  show-overflow-tooltip    align="center" label="发起人" >
            <template #default="scope">
                  <span>{{ scope.row.sponsor||'-' }}</span>
              </template>
        </el-table-column>
        	<!--time_span text -->
        <el-table-column  show-overflow-tooltip    align="center" label="时长(小时)" >
            <template #default="scope">
                  <span>{{ scope.row.time_span||'-' }}</span>
              </template>
        </el-table-column>
        	<!--status tag -->
        <el-table-column    prop="status" align="center" label="状态">
            <template #default="scope">
                <el-tag :type="$js.page.tagColor(scope.row.status,'status')" round v-text="scope.row.status_label"  ></el-tag>
            </template>
        </el-table-column>
        	<!--category tag -->
        <el-table-column    prop="category" align="center" label="分类">
            <template #default="scope">
                <el-tag :type="$js.page.tagColor(scope.row.category,'category')" round v-text="scope.row.category_label"  ></el-tag>
            </template>
        </el-table-column>
        	<!--deal_time date -->
        <el-table-column  show-overflow-tooltip    align="center" label="处理时间" >
            <template #default="scope">
                  <span>{{ scope.row.deal_time||'-' }}</span>
              </template>
        </el-table-column>

<el-table-column fixed="right" align="center" label="操作" width="168">
    <template #default="scope">
        <div class="opts">
            <el-button   type="text" @click="show_cmpnt_aaaqe(scope.row)" >详情 </el-button>
            <el-button   type="text" @click="show_cmpnt_aaaqc(scope.row)" >编辑 </el-button>
            <el-button   type="text" @click="show_cmpnt_aaaqd(scope.row)"  v-if='
            scope.row.status==10'>删除 </el-button>
        </div>
    </template>
</el-table-column>
    </el-table>
    <el-pagination :currentPage="form_aaaqb.pi" :page-size="form_aaaqb.ps"
        style="position: absolute; right: 30px;bottom:6px;" :page-sizes="[10,15,20,30, 50, 100]" :background="false" small
        layout="total,sizes,prev, pager, next, jumper" :total="total_aaaqb" @size-change="handleSizeChange"
        @current-change="handleCurrentChange" />
</div>
  </div>
</template>
<script>
// 添加日常事务
import aaaqf from "@/views/ws/daily/daily_task.add"
// 详情
import aaaqe from "@/views/ws/daily/daily_task.view"
// 编辑
import aaaqc from "@/views/ws/daily/daily_task.edit"
// 完结任务
import aaaqg from "@/views/ws/daily/daily_task.cnfrm"
// 归类
import aaaqh from "@/views/ws/daily/daily_task.dialog"
// 删除
import aaaqd from "@/views/ws/daily/daily_task.cnfrm"
// 业务线
import ddmenu from "@/views/cmpnts/ddMenu.vue"



export default {
components: {
    aaaqf,
    aaaqe,
    aaaqc,
    aaaqg,
    aaaqh,
    aaaqd,
     ddmenu,
},
data() {
  return {
    shortcuts: this.$js.page.latestDays(),
    cmpnt_funcs:{},
    bcheck:[],
    conf: {
      loading: false,
      progressColor: this.$theia.env.conf.progress || []
    },
    ganttIdx: -1,
        form_aaaqb: {
            pi: 1,
            ps: 15,
            disabled:false,
            single_date_range_name:"",
            single_date_range_value:[],
            single_text_name:"",
            single_text_value:"",
            name:"",
            daily_tp:[],
            tsk_reason:"",
            content:"",
            master:[],
            status:[],
            category:[],
            create_time:"",
            deal_time:"",
            finish_time:"",
            archive_status:"",
            lob_id:"",
            },
            priorityList:[],
            daily_tpExts:[],
            daily_tpList:[],
            masterExts:[],
            masterList:[],
            statusExts:[],
            statusList:[],
            categoryExts:[],
            categoryList:[],
            creatorList:[],
            archive_statusList:[],
            archive_statusTabList:[],
            lob_idList:[],
            dataList_aaaqb:[],
            multiQueryDateRange:[{label:"创建时间",value:"create_time"},{label:"处理时间",value:"deal_time"},{label:"完成时间",value:"finish_time"},],
            multiQueryText:[{label:"名称",value:"name"},{label:"原因",value:"tsk_reason"},{label:"内容",value:"content"},],
            total_aaaqb:0,
            note_dataList:[],
};
  },
mounted() {
  this.loadEnums_aaaqb()
  this.form_aaaqb.lob_id = this.$theia.user.get("lob_id")
  this.form_aaaqb.single_date_range_name = (this.multiQueryDateRange[0]||{}).value
  this.form_aaaqb.single_text_name = (this.multiQueryText[0]||{}).value
  this.cmpnt_funcs["aaaqf"] = this.show_cmpnt_aaaqf
  this.cmpnt_funcs["aaaqe"] = this.show_cmpnt_aaaqe
  this.cmpnt_funcs["aaaqc"] = this.show_cmpnt_aaaqc
  this.cmpnt_funcs["aaaqg"] = this.show_cmpnt_aaaqg
  this.cmpnt_funcs["aaaqh"] = this.show_cmpnt_aaaqh
  this.cmpnt_funcs["aaaqd"] = this.show_cmpnt_aaaqd

  this.form_aaaqb = Object.assign(this.form_aaaqb,this.$route.params)
    },
 watch: {
    '$route' () {
      this.form_aaaqb = Object.assign(this.form_aaaqb,this.$route.params)
      this.onQuery();//我的初始化方法
    }
  },
methods: {
  ganttChange(id) {
      this.ganttIdx = id
    },

queryData_aaaqb(mform = {},nform={}){
    //构建查询参数
    let queryForm = Object.assign({},this.form_aaaqb)
    queryForm = Object.assign(queryForm,nform||{})
    
    //处理多个日期选择
    queryForm[this.form_aaaqb.single_date_range_name] = this.form_aaaqb.single_date_range_value
    queryForm[this.form_aaaqb.single_text_name] = this.form_aaaqb.single_text_value
   
    //处理日期范围选择
      queryForm.daily_tp = (queryForm.daily_tp||[]).join(",")
      queryForm.master = (queryForm.master||[]).join(",")
      queryForm.status = (queryForm.status||[]).join(",")
      queryForm.category = (queryForm.category||[]).join(",")
      queryForm.start_create_time = null
      queryForm.end_create_time = null
    if(queryForm.create_time && queryForm.create_time.length > 1){
      queryForm.start_create_time = queryForm.create_time[0]
      queryForm.end_create_time = queryForm.create_time[1]
    }
      queryForm.start_deal_time = null
      queryForm.end_deal_time = null
    if(queryForm.deal_time && queryForm.deal_time.length > 1){
      queryForm.start_deal_time = queryForm.deal_time[0]
      queryForm.end_deal_time = queryForm.deal_time[1]
    }
      queryForm.start_finish_time = null
      queryForm.end_finish_time = null
    if(queryForm.finish_time && queryForm.finish_time.length > 1){
      queryForm.start_finish_time = queryForm.finish_time[0]
      queryForm.end_finish_time = queryForm.finish_time[1]
    }

    queryForm[this.form_aaaqb.single_date_range_name] = null
    queryForm.single_date_range_value = null
    queryForm.single_date_range_name = null

    queryForm.single_text_value = null
    queryForm.single_text_name = null
 
    //处理关联表daily_task daily_task daily_task
   
    //发送查询请求
    let that = this
    that.conf.loading = true
    //构建统计查询
  //数据查询
  this.$theia.http.get("/ws/daily/task/query",queryForm).then(res=>{
      if((res.items||[]).length < (queryForm.ps||10)){
        that.form_aaaqb.disabled = true
      }
      that.conf.loading = false
      that.dataList_aaaqb = res.items||[]
      that.total_aaaqb = res.count
      that.resetItemData_aaaqb(that,that.dataList_aaaqb)
    });
  },

  resetItemData_aaaqb(that,lst){
    lst.forEach(item => {
      item.__raw = Object.assign({}, item)
    item.priority_label = that.$theia.enum.getName("PRI",item.priority)
    item.daily_tp_label = that.$theia.enum.getName("daily_tp",item.daily_tp)
    item.master_label = that.$theia.enum.getName("staff_info",item.master)
    item.status_label = that.$theia.enum.getName("dtstatus",item.status)
    item.category_label = that.$theia.enum.getName("tsk_category",item.category)
    item.creator_label = that.$theia.enum.getName("user_account",item.creator)
    item.archive_status_label = that.$theia.enum.getName("archive_status",item.archive_status)
    item.lob_id_label = that.$theia.enum.getName("my_business_line",item.lob_id)
    item.daily_id_progress = item.daily_id
    item.name_progress = item.name
    item.priority_progress = item.priority
    item.daily_tp_progress = item.daily_tp
    item.tsk_reason_progress = item.tsk_reason
    item.content_progress = item.content
    item.att_progress = item.att
    item.master_progress = item.master
    item.sponsor_progress = item.sponsor
    item.time_span_progress = item.time_span
    item.status_progress = item.status
    item.category_progress = item.category
    item.creator_progress = item.creator
    item.create_time_progress = item.create_time
    item.deal_time_progress = item.deal_time
    item.finish_time_progress = item.finish_time
    item.archive_status_progress = item.archive_status
    item.lob_id_progress = item.lob_id
    item.le_daily_id = item.daily_id
    item.le_name = item.name
    item.le_priority = item.priority
    item.le_daily_tp = item.daily_tp
    item.le_tsk_reason = item.tsk_reason
    item.le_content = item.content
    item.le_att = item.att
    item.le_master = item.master
    item.le_sponsor = item.sponsor
    item.le_time_span = item.time_span
    item.le_status = item.status
    item.le_category = item.category
    item.le_creator = item.creator
    item.le_create_time = that.$theia.str.dateFormat(item.create_time,'MM/dd')
    item.le_deal_time = that.$theia.str.dateFormat(item.deal_time,'MM/dd')
    item.le_finish_time = that.$theia.str.dateFormat(item.finish_time,'MM/dd')
    item.le_archive_status = item.archive_status
    item.le_lob_id = item.lob_id
    item.deal_time = that.$theia.str.dateFormat(item.deal_time,'MM/dd')
    if(item.children){
      that.resetItemData_aaaqb(that,item.children)
    }
  });
  },
    handleSelectionChange(lst=[]){
      this.bcheck = []
      lst.forEach(f=>{
        this.bcheck.push(f.daily_id)
      })
    },
    loadEnums_aaaqb(){
        //任务类型
        this.daily_tpList = this.$theia.enum.get("daily_tp","","" ,false,"")
        //处理人
        this.masterList = this.$theia.enum.get("staff_info","",this.$theia.user.get("lob_id"),false,"")
        //状态
        this.statusList = this.$theia.enum.get("dtstatus","","" ,false,"")
        //分类
        this.categoryList = this.$theia.enum.get("tsk_category","","" ,false,"")
        //归档状态
        this.archive_statusTabList = this.$theia.enum.get("archive_status","","",false,"")
        //业务线
        this.lob_idList = this.$theia.enum.getTree("my_business_line","","" ,99)
        //优先级
        this.priorityList = this.$theia.enum.get("PRI","","" ,false,"")
        //任务类型
        this.daily_tpList = this.$theia.enum.get("daily_tp","","" ,false,"")
        //处理人
        this.masterList = this.$theia.enum.get("staff_info","",this.$theia.user.get("lob_id"),false,"")
        //状态
        this.statusList = this.$theia.enum.get("dtstatus","","" ,false,"")
        //分类
        this.categoryList = this.$theia.enum.get("tsk_category","","" ,false,"")
    },

  handleSizeChange(ps){
    this.form_aaaqb.ps = ps
    this.onQuery(true)
  },
  onlob_idChange(v){
    this.$theia.user.set("lob_id",v)
    this.loadEnums_aaaqb()
    this.onQuery(true)
  },
  handleCurrentChange(pi){
    this.form_aaaqb.pi = pi
    this.onQuery()
  },
  onQuery(refresh){
    if(refresh){
      this.form_aaaqb.pi = 1
    }
    this.queryData_aaaqb ()
  },
show_cmpnt(cmd,row){
  if(this.cmpnt_funcs[cmd]){
    this.cmpnt_funcs[cmd](row)
  }
},
  //详情
  show_cmpnt_aaaqe(fm = {}){
    let query = {} 
    query.daily_id = fm.daily_id|| fm.le_daily_id 
    query.name = fm.name|| fm.le_name 
    query.priority = fm.priority|| fm.le_priority 
    query.daily_tp = fm.daily_tp|| fm.le_daily_tp 
    query.tsk_reason = fm.tsk_reason|| fm.le_tsk_reason 
    query.content = fm.content|| fm.le_content 
    query.att = fm.att|| fm.le_att 
    query.master = fm.master|| fm.le_master 
    query.sponsor = fm.sponsor|| fm.le_sponsor 
    query.time_span = fm.time_span|| fm.le_time_span 
    query.status = fm.status|| fm.le_status 
    query.category = fm.category|| fm.le_category 
    query.creator = fm.creator|| fm.le_creator 
    query.create_time = fm.create_time|| fm.le_create_time 
    query.deal_time = fm.deal_time|| fm.le_deal_time 
    query.finish_time = fm.finish_time|| fm.le_finish_time 
    query.archive_status = fm.archive_status|| fm.le_archive_status 
    query.lob_id = fm.lob_id|| fm.le_lob_id 
    query.daily_id = fm.daily_id

      //2023.4.18添加---

    query.$title="详情"
    this.$refs.cmpnt_aaaqe.show(query)
  },
  //添加日常事务
  show_cmpnt_aaaqf(fm = {}){
    let query = {} 
    query.name = fm.name|| fm.le_name 
    query.priority = fm.priority|| fm.le_priority 
    query.daily_tp = fm.daily_tp|| fm.le_daily_tp 
    query.tsk_reason = fm.tsk_reason|| fm.le_tsk_reason 
    query.content = fm.content|| fm.le_content 
    query.att = fm.att|| fm.le_att 
    query.master = fm.master|| fm.le_master 
    query.sponsor = fm.sponsor|| fm.le_sponsor 
    query.time_span = fm.time_span|| fm.le_time_span 
    query.status = fm.status|| fm.le_status 
    query.deal_time = fm.deal_time|| fm.le_deal_time 
    query.daily_id = fm.daily_id

      //2023.4.18添加---

    query.$title="添加日常事务"
    this.$refs.cmpnt_aaaqf.show(query)
  },
  //编辑
  show_cmpnt_aaaqc(fm = {}){
    let query = {} 
    query.name = fm.name|| fm.le_name 
    query.priority = fm.priority|| fm.le_priority 
    query.daily_tp = fm.daily_tp|| fm.le_daily_tp 
    query.tsk_reason = fm.tsk_reason|| fm.le_tsk_reason 
    query.content = fm.content|| fm.le_content 
    query.att = fm.att|| fm.le_att 
    query.master = fm.master|| fm.le_master 
    query.sponsor = fm.sponsor|| fm.le_sponsor 
    query.time_span = fm.time_span|| fm.le_time_span 
    query.status = fm.status|| fm.le_status 
    query.deal_time = fm.deal_time|| fm.le_deal_time 
    query.daily_id = fm.daily_id

      //2023.4.18添加---

    query.$title="编辑"
    this.$refs.cmpnt_aaaqc.show(query)
  },
  //完结任务
  show_cmpnt_aaaqg(fm = {}){
    let query = {} 
    query.name = fm.name|| fm.le_name 
    query.daily_id = fm.daily_id

      //2023.4.18添加---
    query.daily_id = (this.bcheck||[]).join(",")

    query.$title="完结任务"
    this.$refs.cmpnt_aaaqg.show_aaaqg(query)
  },
  //归类
  show_cmpnt_aaaqh(fm = {}){
    let query = {}
    query.m = fm.w|| fm.le_w 
    query.daily_id = fm.daily_id

      //2023.4.18添加---
    query.daily_id = (this.bcheck||[]).join(",")

    query.$title="归类"
    this.$refs.cmpnt_aaaqh.show_aaaqh(query)
  },
  //删除
  show_cmpnt_aaaqd(fm = {}){
    let query = {} 
    query.daily_id = fm.daily_id|| fm.le_daily_id 
    query.daily_id = fm.daily_id

      //2023.4.18添加---

    query.$title="删除"
    this.$refs.cmpnt_aaaqd.show_aaaqd(query)
  },
},
};
</script>
<style>
.el-dialog{
  border-radius:5px !important
}
</style>
<style scoped>
.el-form-item {
  margin-right: 10px !important;
}

.opts .el-button--small {
  margin-left: 0px;
  padding-left: 0px;
  margin-right: 4px;
}

/deep/.el-table td.el-table__cell div {
  vertical-align: middle;
}
/deep/.el-button+.el-dropdown{
  margin-left:0px;
}
/deep/.el-button+.el-button{
  margin-left:0px;
}
.el-button{
  padding-left: 6px !important;
  padding-right: 6px !important;
}
.blist {
  margin-bottom: 8px;
  width: 100%;
}

.blist .el-radio-group {
  margin-right: 8px;
}

.ddl {
  margin-bottom: 8px;
  width: 100%;

}

.ddl .el-dropdown {
  margin-right: 8px;
}

.listbar {
  margin-bottom: 8px;
  text-align: center;
}
 .el-dropdown-link {
  cursor: pointer;
  color: var(--el-color-primary);
  display: flex;
  align-items: center;
  font-size: 0.65rem;
}
/deep/.el-button--small{
  padding: 5px 4px;
}

.prepend /deep/.el-input__wrapper{
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}
.prepend+/deep/.el-date-editor{
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  border-left:0;
}

</style>